package cn;

public class Mi {
	double recton(double x, double y) {
		double ji = 1;

		for (int j = 1; j <= y; j++) {
			x = x;
			ji = ji * x;
		}
		return ji;
	}

	public static void main(String[] args) {
		Mi m = new Mi();
		double a = m.recton(2, 3);
		System.out.println("请输出X的y次幂：" + a);

	}

}
